import request from '@/utils/request'

// 查询景区门票库存列表
export function listStock(query) {
  return request({
    url: '/ticket/actstock/list',
    method: 'get',
    params: query
    // data:query
  })
}

// 查询景区门票库存详细
export function getStock(activityStockId) {
  return request({
    url: '/ticket/actstock/' + activityStockId,
    method: 'get'
  })
}

// 新增景区门票库存
export function addStock(data) {
  return request({
    url: '/ticket/actstock',
    method: 'post',
    data: data
  })
}

// 修改景区门票库存
export function updateStock(data) {
  return request({
    url: '/ticket/actstock',
    method: 'put',
    data: data
  })
}

// 删除景区门票库存
export function delStock(scenicStockId) {
  return request({
    url: '/ticket/stock/' + scenicStockId,
    method: 'delete'
  })
}
// 查询景区信息
export function getListTicOherBase() {
  return request({
    url: '/ticket/scenic/listTicOherBase?otherBaseType='+2,
    method: 'get'
  })
}
// 获取票种类型
export function getTypeList() {
  return request({
    url: '/ticket/stock',
    method: 'get'
  })
}
// 查询门票信息
export function getListScenic() {
  return request({
    url: '/ticket/business/select',
    method: 'get'
  })
}